package com.iespring.controller.app.catalog;

import com.iespring.bean.admin.category.bo.CategoryBo;
import com.iespring.bean.common.BaseRespVo;
import com.iespring.service.app.catalog.CatalogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author weigwen
 * @Description:
 * @Date 2023/1/2 19:54
 */

@RestController
@RequestMapping("wx")
public class CatalogController {

    @Autowired
    CatalogService catalogService;

    @RequestMapping("catalog/index")
    public BaseRespVo catalogIndex(){
        BaseRespVo baseRespVo = catalogService.catalogIndex();
        return baseRespVo;
    }

    @RequestMapping("catalog/current")
    public BaseRespVo catalogCurrent(CategoryBo categoryBo){
        BaseRespVo baseRespVo = catalogService.catalogCurrent(categoryBo);
        return baseRespVo;
    }

}
